package com.xnyzc.lhy.common.global;

/**
 * 全局配置
 *
 * @author wangshuo
 * @create 2019-07-17 13:23
 */
public class Configuration {

    /**
     * 每页数量
     */
    public final static Integer pageSize = 10;

    // 上午时间
    public final static String AM_START = "06:01:00";
    public final static String AM_END = "11:59:59";

    // 中午时间
    public final static String NOON_START = "12:00:00";
    public final static String NOON_END = "13:59:59";

    // 下午时间
    public final static String PM_START = "14:00:00";
    public final static String PM_END = "17:59:59";

    // 晚上时间
    public final static String NIGHT_START_FIRST = "18:00:00";
    public final static String NIGHT_END_FIRST = "23:59:59";
    public final static String NIGHT_START_SECOND = "00:00:00";
    public final static String NIGHT_END_SECOND = "06:00:59";

    // 提现时间
    public final static String WITHDRAWAL_START = "09:00:00";
    public final static String WITHDRAWAL_END = "16:59:59";

    // 正则
    public final static String FRAME_REGULAR = "^[a-zA-Z0-9]{17}$";
    public final static String PHONE_REGULAR = "^(13[0-9]|14[5|6|7|9]|15[0|1|2|3|4|5|6|7|8|9]|16[5|6]|17[0-9]|18[0-9]|19[1|8|9])\\d{8}$";
    public final static String VEH_NO_REGULAR = "^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))";
    public final static String VEH_REGULAR = "^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$";
    public final static String IDENTITY_REGULAR = "(^\\d{15}$)|(^\\d{18}$)|(^\\d{17}(\\d|X|x)$)";

    public final static long DELAY_ROB_BOOKING = 2 * 60 * 60 * 1000L;
    public static final long DELAY_START_TRIP = 2 * 60 * 60 * 1000L;
    public static final long DELAY_SERIOUS_WARNING = 1 * 60 * 60 * 1000L;

    /**
     * 订单冗余时间
     */
    public static final long DELAY_EXTRA_TRIP = 90 * 60 * 1000L;

    /**
     * 抢单钱包余额限制
     */
    public static final int ROB_WALLET_LIMIT = -200;
}
